package com.huage.courseplatform.framework.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="分页条件请求参数",description="分页条件请求参数")
public class SearchPARAM implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank
    @ApiModelProperty(value = "字段名",required = true)
    private String filedName;

    @NotBlank
    @ApiModelProperty(value = "条件：等于:eq,匹配:like,小于等于:lt,小于：le,大于等于:gt,大于:ge",required = true)
    private String operate;

    @NotBlank
    @ApiModelProperty(value = "匹配值",required = true)
    private String value;
}
